package com.hsd.ha.app.action;


import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hsd.core.base.action.BaseAction;
import com.hsd.core.page.entity.PageParams;
import com.hsd.ha.app.service.IHealthAssessmentService;



@Controller
@RequestMapping("/ha/life")
public class LifeaAction extends BaseAction{
	@Autowired
	private IHealthAssessmentService healthAssessmentService;
	 
	public void setHealthAssessmentService(
			IHealthAssessmentService healthAssessmentService) {
		this.healthAssessmentService = healthAssessmentService;
	}
	 
	/**
	 * 健康测评 ：生活方式测评首页
	 * @param pageParams
	 * @param request
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/loadLifeIndex.do")
	public String loadFdtsIndex(PageParams pageParams,HttpServletRequest request,ModelMap model){ 
		return "app/evaluation/life/life-index";
	} 
	/**
	 * 健康测评 ：生活方式测评内容页
	 * @param pageParams
	 * @param request
	 * @param model
	 * @return
	 */
	@RequestMapping(value = "/loadLifeContent.do")
	public String loadFdtsContent(PageParams pageParams,HttpServletRequest request,ModelMap model){ 
		return "app/evaluation/life/life-content";
	} 
	/**
	 * 健康测评 ：生活方式测评结果
	 * @param pageParams
	 * @param request
	 * @param model
	 * @return
	 */
 	@RequestMapping(value="/loadLifeEvaResult.do",produces = {"application/json;charset=UTF-8"})
	public @ResponseBody String loadLifeEvaResult(HttpServletRequest request,ModelMap model){
		return "";
	} 
	
}
